package com.mysoft.dataexchange.service;

import com.mysoft.dataexchange.service.hystrix.DataExchangeServiceHystrix;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;
import java.util.Map;

@FeignClient(value = "dataExchange", fallback = DataExchangeServiceHystrix.class)
public interface DataExchangeService {

    @RequestMapping(value = "/hi",method = RequestMethod.GET)
    public Map<String, Object> sayHi();

}